package com.gupao.strategydemo.orderpay.payport;

import com.gupao.strategydemo.orderpay.PayState;
import com.gupao.strategydemo.orderpay.Payment;
import lombok.extern.slf4j.Slf4j;

import java.math.BigDecimal;

@Slf4j
public class AliPay implements Payment {
    @Override
    public PayState pay(String uid, BigDecimal amount) {
        log.info("欢迎使用支付宝支付");
        log.info("查询账户余额，开始扣款");
        return new PayState(200,"支付成功",amount);
    }
}
